import request from '@/utils/request'

// 删除
export function deleteInfotype(params) {
  return request({
    url: '/administrative/infoType/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}

// 数据查询
export function selectInfotype() {
  return request({
    url: '/administrative/infoType/selectPage',
    method: 'POST'
  })
}

// 数据添加
export function insertInfotype(data) {
  return request({
    url: '/administrative/infoType/insertSelective',
    method: 'POST',
    data
  })
}

// 修改id查询
export function selectInfotypeId(params) {
  return request({
    url: '/administrative/infoType/selectByPrimaryKey',
    method: 'post',
    params
  })
}

// 数据修改
export function updateInfotype(data) {
  return request({
    url: '/administrative/infoType/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

